<?php
try {
	$client = new SOAPClient ( null, array (
			'location' => 'http://localhost:8089/soap/NoWsdlSoap/server.php', // 设置server路径
			'uri' => 'http://localhost:8089/soap/NoWsdlSoap/server.php',
			'login' => 'fuck', // HTTP auth login
			'password' => '123456'  // HTTP auth password
	) );
	echo $client->strtolink ( "12312" ) , '<br>'; // 直接调用server方法
	echo $client->test ( "p1", "p2" ) , '<br>'; // 直接调用server方法
	echo $client->__soapCall ( 'test', array (
			"p1" => "1",
			"p2" => "2" 
	) ),'<br>'; // 间接调用server方法
	echo $client->__soapCall ( 'test', array (
			"1",
			"2" 
	) ),'<br>'; // 间接调用server方法
} catch ( SOAPFault $e ) {
	print $e->getMessage ();
}
?>